package com.ytsky.hctechnologysys.dao;
import com.ytsky.hctechnologysys.entity.Educate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Dell
 */
public interface EducateMapper {

    int  insert(Educate educate);

    int deleteById(int z);


    int updateById(Educate educate);


    List<Educate> selectByCondition(Educate educate);


    List<Educate> selectByIds(List<Integer> ids);

    List<Educate> selectAll();

    List<Educate> selectByKeyword(String keyword);

    Educate selectById(int id);
    /**
     *
     * @param username
     * @param password
     * @return
     */
    Educate selectByNamePass(@Param("username")String username, @Param("password")String password);
}
